﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="messageMail.aspx.cs" Inherits="WebApp.admin.message.messageMail" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <%Response.Write(GetTitle()); %>
    </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>

            <td class="td_middle_middle">
                <div class="maincontent">
                <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
所在位置：邮件服务->
<%= Request.QueryString["ot"] == "ed" ? "邮件回复" : "邮件添加"%>

<a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    发件人邮箱地址：</td>
                                <td class="td_content">
                                    <input id="txtFromAddress" runat="server" type="text" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    发件人姓名：</td>
                                <td class="td_content">
                                    <input id="txtFromName" runat="server" type="text" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    SMTP服务器地址：</td>
                                <td class="td_content">
                                    <input id="txtMailDomain" runat="server" type="text" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    SMTP服务器端口号：</td>
                                <td class="td_content">
                                    <input id="txtMailDomainPort" runat="server" type="text" value="25" />*最多20个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    SMTP用户名：</td>
                                <td class="td_content">
                                    <input id="txtMailServerUserName" runat="server" type="text" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    SMTP密码：</td>
                                <td class="td_content">
                                    <input id="txtMailServerPassWord" runat="server" type="password" class="password" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    是否启用：</td>
                                <td class="td_content">
                                    <input id="rdIsEnabled1" runat="server" name="isEnabled" type="radio" value="1" />是&nbsp;&nbsp;<input
                                        id="rdIsEnabled0" runat="server" name="isEnabled" type="radio" value="0" />否</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    邮箱配置测试：</td>
                                <td class="td_content">
                                    <input id="btnMailTest" type="button" class="formButton" value="邮箱测试" onclick="javascript:document.getElementById('sendMail').style.display='block';document.getElementById('btnMailTest').style.display='none';" />
                                    <span id="sendMail" style="display: none;">收件人邮箱<input id="txtMailTo" type="text"
                                        runat="server" /><asp:Button ID="btnSendMail" runat="server" Text="发送邮件" CssClass="formButton"
                                            OnClick="btnSendMail_Click" OnClientClick="return sendMail();" /></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkMailForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
        </tr>

    </table>
</body>
</html>
